﻿using Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;

namespace AutofacDemo2.Controllers
{
    public class TestController : ApiController
    {
        private readonly IService iService;
        public TestController(IService iService)
        {
            this.iService = iService;
        }

        [HttpGet]
        public String Index()
        {
            return iService.ServiceMethod();
        }
    }
}